pin = 4
gpio.mode(pin,gpio.OUTPUT)
print('--初始关闭LED4--')
gpio.mode(pin,gpio.HIGH)


local mytim = tmr.create() -- create定时器对象
mytim:registry(1000,tmr.ALARM_SINGLE,function()
    gpio.write(pin,gpio.Low)
end)
mytim:start()
